package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.change.BpChangeRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface BpChangeRecordDao extends JpaRepository<BpChangeRecord, Long>, JpaSpecificationExecutor<BpChangeRecord> {

    BpChangeRecord findFirstByChangeItemIdAndChangeTypeAndState(Long id, String changeType, Integer state);

}
